//
//  ContentCell.m
//  Runone
//
//  Created by runone01 on 16/10/22.
//  Copyright © 2016年 runone. All rights reserved.
//

#import "ContentCell.h"

@implementation ContentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setCellHight:(CGFloat)cellHight {
    _cellHight=cellHight;
    _Message.numberOfLines=0;
    CGSize max=CGSizeMake(self.frame.size.width - 60, 9999);
    CGSize newsize=[_Message sizeThatFits:max];
    _Message.frame=CGRectMake(0, 0, newsize.width, newsize.height);
    _Message.backgroundColor=[UIColor greenColor];
    _cellHight=_Message.frame.size.height;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
